Comments

Log in with itch.io to leave a comment.

Really curious on how you did the snake animation, also great game in such a short time

(2 edits)

Thanks!  

The snake was pretty simple. I have a top and bottom texture for the snake, and one object that is just a few rows of pixels from the top texture and a few rows of pixels from the bottom texture. The player is actually just controlling a bouncing spawner for these objects.



That spawner is just constantly spawning these objects. I limit the y speed of the spawner to the height of the top or bottom segments, so that means when it's moving upwards the new segment objects will overlap the top segment of the ones under it and only show the bottom, and when it's moving down the new ones will overlap the bottom and only show the top. Then the region, the section of the image that the object is showing, just shifts upwards over time until it reaches the end of the sprite, and then deletes itself.  

It might sound a little complicated, but it really only took like 30 minutes to get the first version of it working.  

It could also be done far more efficiently if I used particles, but I'm new to Godot and I don't have much experience with their particle system, so I didn't want to potentially spend hours getting it to work the right way when I already had it working perfectly fine the wrong way. Not for a jam.

(+1)

High Score 49